﻿ 
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.EntityFrameworkCore;
using Volo.Abp.Modularity;

namespace Student.EFCore
{
    [DependsOn(
        typeof(AbpEntityFrameworkCoreModule)
    )]
    public class StudentEFCoreModule:AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            var services = context.Services;

            services.AddAbpDbContext<StudentDbContext>(options => {
                options.AddDefaultRepositories();
            });
        }
    }
}